<!doctype html>

<html>
<head>
  <link rel="shortcut icon" href="static/images/favicon.ico" type="image/x-icon">
  <title>package_test.pb.js (Closure Library API Documentation - JavaScript)</title>
  <link rel="stylesheet" href="static/css/base.css">
  <link rel="stylesheet" href="static/css/doc.css">
  <link rel="stylesheet" href="static/css/sidetree.css">
  <link rel="stylesheet" href="static/css/prettify.css">

  <script>
     var _staticFilePath = "static/";
     var _typeTreeName = "goog";
     var _fileTreeName = "Source";
  </script>

  <script src="static/js/doc.js">
  </script>


  <meta charset="utf8">
</head>

<body onload="grokdoc.onLoad();">

<div id="header">
  <div class="g-section g-tpl-50-50 g-split">
    <div class="g-unit g-first">
      <a id="logo" href="index.html">Closure Library API Documentation</a>
    </div>

    <div class="g-unit">
      <div class="g-c">
        <strong>Go to class or file:</strong>
        <input type="text" id="ac">
      </div>
    </div>
  </div>
</div>

<div class="clear"></div>

<h2><a href="closure_goog_proto2_package_test.pb.js.html">package_test.pb.js</a></h2>

<pre class="prettyprint lang-js">
<a name="line1"></a>// Copyright 2008 The Closure Library Authors. All Rights Reserved.
<a name="line2"></a>//
<a name="line3"></a>// Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);
<a name="line4"></a>// you may not use this file except in compliance with the License.
<a name="line5"></a>// You may obtain a copy of the License at
<a name="line6"></a>//
<a name="line7"></a>//      http://www.apache.org/licenses/LICENSE-2.0
<a name="line8"></a>//
<a name="line9"></a>// Unless required by applicable law or agreed to in writing, software
<a name="line10"></a>// distributed under the License is distributed on an &quot;AS-IS&quot; BASIS,
<a name="line11"></a>// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
<a name="line12"></a>// See the License for the specific language governing permissions and
<a name="line13"></a>// limitations under the License.
<a name="line14"></a>// All other code copyright its respective owners(s).
<a name="line15"></a>
<a name="line16"></a>/**
<a name="line17"></a> * @fileoverview Generated Protocol Buffer code for file
<a name="line18"></a> * closure/goog/proto2/package_test.proto.
<a name="line19"></a> */
<a name="line20"></a>
<a name="line21"></a>goog.provide(&#39;someprotopackage.TestPackageTypes&#39;);
<a name="line22"></a>
<a name="line23"></a>goog.require(&#39;goog.proto2.Message&#39;);
<a name="line24"></a>goog.require(&#39;proto2.TestAllTypes&#39;);
<a name="line25"></a>
<a name="line26"></a>goog.setTestOnly(&#39;package_test.pb&#39;);
<a name="line27"></a>
<a name="line28"></a>
<a name="line29"></a>/**
<a name="line30"></a> * Message TestPackageTypes.
<a name="line31"></a> * @constructor
<a name="line32"></a> * @extends {goog.proto2.Message}
<a name="line33"></a> */
<a name="line34"></a>someprotopackage.TestPackageTypes = function() {
<a name="line35"></a>  goog.proto2.Message.apply(this);
<a name="line36"></a>};
<a name="line37"></a>goog.inherits(someprotopackage.TestPackageTypes, goog.proto2.Message);
<a name="line38"></a>
<a name="line39"></a>
<a name="line40"></a>/**
<a name="line41"></a> * Overrides {@link goog.proto2.Message#clone} to specify its exact return type.
<a name="line42"></a> * @return {!someprotopackage.TestPackageTypes} The cloned message.
<a name="line43"></a> * @override
<a name="line44"></a> */
<a name="line45"></a>someprotopackage.TestPackageTypes.prototype.clone;
<a name="line46"></a>
<a name="line47"></a>
<a name="line48"></a>/**
<a name="line49"></a> * Gets the value of the optional_int32 field.
<a name="line50"></a> * @return {?number} The value.
<a name="line51"></a> */
<a name="line52"></a>someprotopackage.TestPackageTypes.prototype.getOptionalInt32 = function() {
<a name="line53"></a>  return /** @type {?number} */ (this.get$Value(1));
<a name="line54"></a>};
<a name="line55"></a>
<a name="line56"></a>
<a name="line57"></a>/**
<a name="line58"></a> * Gets the value of the optional_int32 field or the default value if not set.
<a name="line59"></a> * @return {number} The value.
<a name="line60"></a> */
<a name="line61"></a>someprotopackage.TestPackageTypes.prototype.getOptionalInt32OrDefault = function() {
<a name="line62"></a>  return /** @type {number} */ (this.get$ValueOrDefault(1));
<a name="line63"></a>};
<a name="line64"></a>
<a name="line65"></a>
<a name="line66"></a>/**
<a name="line67"></a> * Sets the value of the optional_int32 field.
<a name="line68"></a> * @param {number} value The value.
<a name="line69"></a> */
<a name="line70"></a>someprotopackage.TestPackageTypes.prototype.setOptionalInt32 = function(value) {
<a name="line71"></a>  this.set$Value(1, value);
<a name="line72"></a>};
<a name="line73"></a>
<a name="line74"></a>
<a name="line75"></a>/**
<a name="line76"></a> * @return {boolean} Whether the optional_int32 field has a value.
<a name="line77"></a> */
<a name="line78"></a>someprotopackage.TestPackageTypes.prototype.hasOptionalInt32 = function() {
<a name="line79"></a>  return this.has$Value(1);
<a name="line80"></a>};
<a name="line81"></a>
<a name="line82"></a>
<a name="line83"></a>/**
<a name="line84"></a> * @return {number} The number of values in the optional_int32 field.
<a name="line85"></a> */
<a name="line86"></a>someprotopackage.TestPackageTypes.prototype.optionalInt32Count = function() {
<a name="line87"></a>  return this.count$Values(1);
<a name="line88"></a>};
<a name="line89"></a>
<a name="line90"></a>
<a name="line91"></a>/**
<a name="line92"></a> * Clears the values in the optional_int32 field.
<a name="line93"></a> */
<a name="line94"></a>someprotopackage.TestPackageTypes.prototype.clearOptionalInt32 = function() {
<a name="line95"></a>  this.clear$Field(1);
<a name="line96"></a>};
<a name="line97"></a>
<a name="line98"></a>
<a name="line99"></a>/**
<a name="line100"></a> * Gets the value of the other_all field.
<a name="line101"></a> * @return {proto2.TestAllTypes} The value.
<a name="line102"></a> */
<a name="line103"></a>someprotopackage.TestPackageTypes.prototype.getOtherAll = function() {
<a name="line104"></a>  return /** @type {proto2.TestAllTypes} */ (this.get$Value(2));
<a name="line105"></a>};
<a name="line106"></a>
<a name="line107"></a>
<a name="line108"></a>/**
<a name="line109"></a> * Gets the value of the other_all field or the default value if not set.
<a name="line110"></a> * @return {!proto2.TestAllTypes} The value.
<a name="line111"></a> */
<a name="line112"></a>someprotopackage.TestPackageTypes.prototype.getOtherAllOrDefault = function() {
<a name="line113"></a>  return /** @type {!proto2.TestAllTypes} */ (this.get$ValueOrDefault(2));
<a name="line114"></a>};
<a name="line115"></a>
<a name="line116"></a>
<a name="line117"></a>/**
<a name="line118"></a> * Sets the value of the other_all field.
<a name="line119"></a> * @param {!proto2.TestAllTypes} value The value.
<a name="line120"></a> */
<a name="line121"></a>someprotopackage.TestPackageTypes.prototype.setOtherAll = function(value) {
<a name="line122"></a>  this.set$Value(2, value);
<a name="line123"></a>};
<a name="line124"></a>
<a name="line125"></a>
<a name="line126"></a>/**
<a name="line127"></a> * @return {boolean} Whether the other_all field has a value.
<a name="line128"></a> */
<a name="line129"></a>someprotopackage.TestPackageTypes.prototype.hasOtherAll = function() {
<a name="line130"></a>  return this.has$Value(2);
<a name="line131"></a>};
<a name="line132"></a>
<a name="line133"></a>
<a name="line134"></a>/**
<a name="line135"></a> * @return {number} The number of values in the other_all field.
<a name="line136"></a> */
<a name="line137"></a>someprotopackage.TestPackageTypes.prototype.otherAllCount = function() {
<a name="line138"></a>  return this.count$Values(2);
<a name="line139"></a>};
<a name="line140"></a>
<a name="line141"></a>
<a name="line142"></a>/**
<a name="line143"></a> * Clears the values in the other_all field.
<a name="line144"></a> */
<a name="line145"></a>someprotopackage.TestPackageTypes.prototype.clearOtherAll = function() {
<a name="line146"></a>  this.clear$Field(2);
<a name="line147"></a>};
<a name="line148"></a>
<a name="line149"></a>
<a name="line150"></a>goog.proto2.Message.set$Metadata(someprotopackage.TestPackageTypes, {
<a name="line151"></a>  0: {
<a name="line152"></a>    name: &#39;TestPackageTypes&#39;,
<a name="line153"></a>    fullName: &#39;someprotopackage.TestPackageTypes&#39;
<a name="line154"></a>  },
<a name="line155"></a>  1: {
<a name="line156"></a>    name: &#39;optional_int32&#39;,
<a name="line157"></a>    fieldType: goog.proto2.Message.FieldType.INT32,
<a name="line158"></a>    type: Number
<a name="line159"></a>  },
<a name="line160"></a>  2: {
<a name="line161"></a>    name: &#39;other_all&#39;,
<a name="line162"></a>    fieldType: goog.proto2.Message.FieldType.MESSAGE,
<a name="line163"></a>    type: proto2.TestAllTypes
<a name="line164"></a>  }
<a name="line165"></a>});
</pre>


</body>
</html>
